import request from '@/utils/request'

// 查询用户试卷列表
export function listUserPaper(query) {
  return request({
    url: '/study/exam/userPaper/list',
    method: 'get',
    params: query
  })
}

// 查询用户试卷详细
export function getUserPaper(id) {
  return request({
    url: '/study/exam/userPaper/' + id,
    method: 'get'
  })
}

// 新增用户试卷
export function addUserPaper(data) {
  return request({
    url: '/study/exam/userPaper',
    method: 'post',
    data: data
  })
}

// 修改用户试卷
export function updateUserPaper(data) {
  return request({
    url: '/study/exam/userPaper',
    method: 'put',
    data: data
  })
}

// 删除用户试卷
export function delUserPaper(id) {
  return request({
    url: '/study/exam/userPaper/' + id,
    method: 'delete'
  })
}
